widget-factory: Usefully demo Frame shadow types
authorDaniel Boles <dboles@src.gnome.org>
Wed, 13 Sep 2017 13:37:38 +0000 (14:37 +0100)
committerDaniel Boles <dboles@src.gnome.org>
Thu, 14 Sep 2017 17:34:07 +0000 (18:34 +0100)
Instead of showing the 4 types except for GTK_SHADOW_NONE, which are all
treated identically and provide no way for themes to differentiate, just
keep 2 Frames, and make one of them GTK_SHADOW_NONE to demo a flat Frame

demos/widget-factory/widget-factory.ui

index 5fcf9b53439c7f03a58966dc7af478ad3ee6bcca..49afd094ec42c9ef22f9e88a68222b7bf9aa5647 100644 (file)
@@ -1305,7 +1305,7 @@ Suspendisse feugiat quam quis dolor accumsan cursus.</property>
                             <child type="label">
                               <object class="GtkLabel" id="label1">
                                 <property name="visible">1</property>
-                                <property name="label" translatable="yes">&lt;b&gt;In&lt;/b&gt;</property>
+                                <property name="label" translatable="yes">&lt;b&gt;Shadow&lt;/b&gt;</property>
                                 <property name="use_markup">1</property>
                               </object>
                             </child>
@@ -1317,11 +1317,11 @@ Suspendisse feugiat quam quis dolor accumsan cursus.</property>
                         <child>
                           <object class="GtkFrame" id="frame2">
                             <property name="visible">1</property>
-                            <property name="shadow_type">out</property>
+                            <property name="shadow_type">none</property>
                             <child type="label">
                               <object class="GtkLabel" id="label2">
                                 <property name="visible">1</property>
-                                <property name="label" translatable="yes">&lt;b&gt;Out&lt;/b&gt;</property>
+                                <property name="label" translatable="yes">&lt;b&gt;No shadow&lt;/b&gt;</property>
                                 <property name="use_markup">1</property>
                               </object>
                             </child>
@@ -1331,39 +1331,6 @@ Suspendisse feugiat quam quis dolor accumsan cursus.</property>
                             <property name="position">1</property>
                           </packing>
                         </child>
-                        <child>
-                          <object class="GtkFrame" id="frame3">
-                            <property name="visible">1</property>
-                            <child type="label">
-                              <object class="GtkLabel" id="label17">
-                                <property name="visible">1</property>
-                                <property name="label" translatable="yes">&lt;b&gt;Etched in&lt;/b&gt;</property>
-                                <property name="use_markup">1</property>
-                              </object>
-                            </child>
-                          </object>
-                          <packing>
-                            <property name="expand">1</property>
-                            <property name="position">2</property>
-                          </packing>
-                        </child>
-                        <child>
-                          <object class="GtkFrame" id="frame4">
-                            <property name="visible">1</property>
-                            <property name="shadow_type">etched-out</property>
-                            <child type="label">
-                              <object class="GtkLabel" id="label18">
-                                <property name="visible">1</property>
-                                <property name="label" translatable="yes">&lt;b&gt;Etched out&lt;/b&gt;</property>
-                                <property name="use_markup">1</property>
-                              </object>
-                            </child>
-                          </object>
-                          <packing>
-                            <property name="expand">1</property>
-                            <property name="position">3</property>
-                          </packing>
-                        </child>
                       </object>
                       <packing>
                         <property name="expand">1</property>